﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mayn.Video
{
    [SugarTable("sys_log")]
    public class SysLog
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        public string ID
        {
            set;
            get;
        }
        /// <summary>
        /// 模块编码
        /// </summary>
        public string MODULECODE
        {
            set;
            get;
        }
        /// <summary>
        /// 模块名称
        /// </summary>
        public string MODULENAME
        {
            set;
            get;
        }
        /// <summary>
        /// 操作类型
        /// </summary>
        public string ACTIONTYPE
        {
            set;
            get;
        }
        /// <summary>
        /// 标签
        /// </summary>
        public string MARK
        {
            set;
            get;
        }
        /// <summary>
        /// 日志标题
        /// </summary>
        public string TITLE
        {
            set;
            get;
        }
        /// <summary>
        /// 日志信息
        /// </summary>
        public string INFO
        {
            set;
            get;
        }
        /// <summary>
        /// 操作人内码
        /// </summary>
        public int USERID
        {
            set;
            get;
        }
        /// <summary>
        /// 日志写入时间
        /// </summary>
        public string WRITETIME
        {
            set;
            get;
        }
    }

    /// <summary>
    /// 日志类型
    /// </summary>
    public enum LogType
    {
        Log,    //日志
        Access, //访问
        Error   //报错
    }
}
